<!-- index.html -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字数计数器</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <div class="container">
        <h1>字数统计</h1>
        <textarea id="text-input" placeholder="输入文字..."></textarea>
        <div id="counter">0 字</div>
    </div>
    <script src="index.js"></script>
</body>
</html>